<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="layui/css/layui.css">
</head>
<body>
<h3 th:text="${name}"></h3>
<div class="layui-form">
    <table class="layui-table">
        <tr>
            <th>ID</th>
            <th>用户名</th>
            <th>密码</th>
            <th>操作</th>
        </tr>
        <tr th:each="user : ${users}">
            <td th:text="${user.id}">1</td>
            <td th:text="${user.username}">zhangsan</td>
            <td th:text="${user.pwd}">123456</td>
            <td>
                <a th:href="@{/edit/{id}(id=${user.id})}" class="layui-btn">编辑</a>
                <a th:href="@{/delete/{id}(id=${user.id})}" class="layui-btn layui-btn-danger">删除</a>
            </td>
        </tr>
    </table>
</div>

<script src="layui/layui.js"></script>

</body>
</html>